﻿using AppService.IService.Sys_statistics;
using Domain.Entity.System_operation;
using Domain.Entity.System_Ordermanagement;
using Domain.IRepository.Sys_statistics;
using Domain.IRepository.System_Order;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace AppService.Service.Sys_statistics
{
    [Dependency(ServiceLifetime.Scoped)]
    public class Order_statisticsService : IOrder_statisticsService
    {
        public Order_statisticsService(IOrder_statisticsRepository order_StatisticsRepository)
        {
            Order_StatisticsRepository = order_StatisticsRepository;
        }

        public IOrder_statisticsRepository Order_StatisticsRepository { get; set; }

        public int Count()
        {
            return Order_StatisticsRepository.Count();
        }

        public int Count2(string Create_time)
        {
            return Order_StatisticsRepository.Count2(Create_time);
        }

        public int Count3()
        {
            return Order_StatisticsRepository.Count3();
        }

        public List<Driver_statistics> GetDriver_Statistics(int currentPage, int PageSize)
        {
            return Order_StatisticsRepository.GetDriver_Statistics(currentPage, PageSize);
        }

        public List<Driver_statistics> GetDriver_Statistics2(string Create_time, int currentPage, int PageSize)
        {
            return Order_StatisticsRepository.GetDriver_Statistics2(Create_time, currentPage, PageSize);
        }

        public List<Driver_statistics> GetDriver_Statistics3(int currentPage, int PageSize)
        {
            return Order_StatisticsRepository.GetDriver_Statistics3(currentPage, PageSize);
        }

        public List<Driver_statistics> GetException_log(int Dv_id)
        {
            return Order_StatisticsRepository.GetException_log(Dv_id);
        }

        public int GetEx_count()
        {
            return Order_StatisticsRepository.GetEx_count();
        }

        public int GetOrders_count()
        {
            return Order_StatisticsRepository.GetOrders_count();
        }

        public int GetOrders_count2()
        {
            return Order_StatisticsRepository.GetOrders_count2();
        }

        public List<string> GetOrder_time_year()
        {
            return Order_StatisticsRepository.GetOrder_time_year();
        }

        public List<Order_time> GetOreder_time_sum(string year)
        {
            return Order_StatisticsRepository.GetOreder_time_sum(year);
        }

        public List<Driver_statistics> GetWb_ment()
        {
            return Order_StatisticsRepository.GetWb_ment();
        }

        public List<Wb_meter> GetWb_Meters(int Dv_id)
        {
            return Order_StatisticsRepository.GetWb_Meters(Dv_id);
        }

        public List<Order_time> GetWb_Meters(string Year)
        {
            return Order_StatisticsRepository.GetWb_Meters(Year);
        }

        public int GetWb_meter_count()
        {
            return Order_StatisticsRepository.GetWb_meter_count();
        }
        public int GetWb_meter_count2()
        {
            return Order_StatisticsRepository.GetWb_meter_count2();
        }

        public bool UpdateOrder(string Ord_id)
        {
            return Order_StatisticsRepository.UpdateOrder(Ord_id) > 0;
        }
    }
}
